package chapter10;

import org.junit.Test;

public class MyExceptionTest {
	
	@Test
	public void testException(){
		try{
			ExceptionDemo.compute(1);
			ExceptionDemo.compute(20);
		}catch(MyException ex){
			System.out.println("Caught " + ex);
		}
	}

}
